package com.yn.pet.bus.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * 地理围栏告警记录表(GenFenceAlarm)表实体类
 *
 * @author makejava
 * @since 2025-07-09 12:00:47
 */
@Data
@TableName("t_gen_fence_alarm")
@EqualsAndHashCode(callSuper = true)
public class GenFenceAlarm extends Model<GenFenceAlarm> {
    //主键ID
    private Long alarmId;
    //围栏ID
    private Long fenceId;
    //设备ID
    private Long deviceId;
    //类型(1-进入 2-离开)
    private Integer alarmType;
    //告警时间
    private Date alarmTime;
    //位置ID(位置表主键)
    private Long locationId;
    //是否处理 0-未处理 1-已处理
    private Integer processed;
    //处理时间
    private Date processTime;
    //创建时间
    private Date createTime;
    //更新时间
    private Date updateTime;

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    public Serializable pkVal() {
        return this.alarmId;
    }
}

